package com.example.demo.demos.config;

import com.example.demo.demos.webService.WeatherInterfaceImpl;
import com.sun.xml.internal.ws.transport.http.server.EndpointImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.ws.Endpoint;


/**
 * @Author: lixz
 * @Date: 2024/10/28/20:36
 */
@Configuration
public class WebServiceConfig {

    @Bean
    public Endpoint getEndpoint() {
        WeatherInterfaceImpl serviceImpl=new WeatherInterfaceImpl();
        Endpoint publish = EndpointImpl.publish("http://localhost:8080/show",serviceImpl);
        return publish;
    }

}
